package cloud.alibaba.study.service.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import cloud.alibaba.study.entity.base.ResponseResult;
import cloud.alibaba.study.entity.order.OrderEntity;

@FeignClient(name="m-order-service")
public interface OrderServiceFeignClient {

	/**
	 * @Title: getOrder   
	 * @Description: 使用Feign最后构建的uri:http://m-order-service/getOrderList
	 * @date: 2021年12月20日 下午4:23:55   
	 * @version:
	 * @return          
	 * @throws
	 */
	@RequestMapping("/order/getOrderList")//此处一定要与提供者的接口路径一致
	public ResponseResult<Object> getOrderList();
	
	@RequestMapping("/order/getOrderInfo/{id}")
	public ResponseResult<OrderEntity> getOrderInfo(@PathVariable String id);
}
